var url1=window.sessionStorage.getItem('url1');
function signin(){
	var username=$('#username').val();
	var password=$('#password').val();
	$.ajax({
        url:url1+'regist',
        type:'post',
        data:{'username':username,'password':password},
        dataType:'JSON',
        success:function (data) {
        	alert(data.meta.message);
            window.location.href='LoginPage.html';
        }
    },'json');
}